package com.dzf.service;

import com.dzf.entity.Book;

import java.util.List;
import java.util.Map;

public interface BookService {
    List<Book> findAll();
    Book findById(int bookid);
    int findByTotal(Map<String,Object> map);
    List<Book> findByIf(int start, int num,String condition);
    void amend(Book book);
    Map<String, Object> findBookByPage(int start,
                                       int num,
                                       int typeid);
    void addRate(int bookid);
    Map<String , Object> findBookByPageOrd(int start,
                                 int num,
                                 Map<String,Object> map);
    List<Book> findOrd5(String cdt);
    List<Book> findRate5();
    List<Book> findSale5();
    List<Book> findFav5();
}
